home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.09 Sep 96 / C++ DebugStr / doutstream < prev    next >
Encoding:
Text File  |  1996-06-18  |  492 b   |  29 lines  |  [TEXT/R*ch]

  1. // (c) copyright 1995,1996, Jon Kalb, Liberty Software
  2. // Kalb@LibertySoft.com
  3. // You may freely incorporate this code into any machine-
  4. // readable project. You may modify this code, but you may
  5. // not remove this statement. 
  6.  
  7. #ifndef _DOUTSTREAM_
  8. #define _DOUTSTREAM_
  9.  
  10. // dout stream header
  11.  
  12. #include <iostream.h>
  13.  
  14. #include "debugbuf.h"
  15. #include "doututils.h"
  16.  
  17. extern ostream dout;
  18. static debugbufinit Debugbufinit;
  19.  
  20. #ifdef NDEBUG
  21.     ds(s)
  22. #else    // NDEBUG
  23.     ds(s) s
  24. #endif    // NDEBUG
  25.  
  26.  
  27. #endif
  28.  
  29.